package com.lzh.eduorder;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Classname OrdersApplication
 * @Description TODO
 * @Date 2021/3/11 14:52
 * @Author Anonymous
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.lzh"})
@MapperScan("com.lzh.eduorder.mapper")
@EnableDiscoveryClient  //作为nacos注册的注解
@EnableFeignClients //因为它要调用其他服务的接口
public class OrdersApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class, args);
    }
}
